\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request}{\section{\-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request \-Class \-Reference}
\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request}\index{\-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request@{\-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request}}
}


\-The basic class to provide interface for \hyperlink{namespaceS3}{\-S3}.  


\-Inheritance diagram for \-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classRestAPI_1_1amazon_1_1S3_1_1S3Request}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_afe52c2181effb3fe82cce1e9361db08a}{\-\_\-\-\_\-init\-\_\-\-\_\-}
\begin{DoxyCompactList}\small\item\em \-Create a \hyperlink{namespaceS3}{\-S3} style request. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_af704021d3c400b0062d52b9474be7968}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_af704021d3c400b0062d52b9474be7968}{authorize}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_af704021d3c400b0062d52b9474be7968}

\begin{DoxyCompactList}\small\item\em \-Format the request to follow \hyperlink{namespaceS3}{\-S3} requirement and authorize the request. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a9b785b8ef5ea6235a66c511f4da833bd}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a9b785b8ef5ea6235a66c511f4da833bd}{get\-Form}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a9b785b8ef5ea6235a66c511f4da833bd}

\begin{DoxyCompactList}\small\item\em \-Get the \-Html form for posting to \hyperlink{namespaceS3}{\-S3} \-Set the x-\/amz-\/security-\/token/\-Content-\/\-Type/\-Content-\/\-Encoding/\-Expires in header. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a1171fae5c27fe6a39462854f574d7572}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a1171fae5c27fe6a39462854f574d7572}{temporary\-Url}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a1171fae5c27fe6a39462854f574d7572}

\begin{DoxyCompactList}\small\item\em \-Get the url for temporary access of the resource. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3126b0e1ca540d9bb2d654fbdc145da9}{expires}
\begin{DoxyCompactList}\small\item\em \-Set up the expiration time of a temporary \-Url to fetch the protected resources inside the buckets. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_abbbd97b8233becb6aa67cd8bdd7a5521}{set\-Host}
\begin{DoxyCompactList}\small\item\em \-Overrided set\-Host for \hyperlink{namespaceS3}{\-S3}. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a34f3a1407d9ad0708306d9e16fdf4f33}{add\-Header}
\begin{DoxyCompactList}\small\item\em \-Overrided add\-Header for \hyperlink{namespaceS3}{\-S3}. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a902efd883f284f842d1ba77b8178f3d7}{def {\bfseries \-Canonicalize\-Header}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a902efd883f284f842d1ba77b8178f3d7}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a0c4e2e155f17ec3c4458d7270dbc18c4}{def {\bfseries timestamp}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a0c4e2e155f17ec3c4458d7270dbc18c4}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a41e446b4a775e34ec2881cf8da5fec58}{def {\bfseries \-Canonicalize\-Resource}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a41e446b4a775e34ec2881cf8da5fec58}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a0929efb0acfc668137818e3d79139de6}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a0929efb0acfc668137818e3d79139de6}{get\-String\-To\-Sign}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a0929efb0acfc668137818e3d79139de6}

\begin{DoxyCompactList}\small\item\em \-Get string to sign for general \hyperlink{namespaceS3}{\-S3} requests. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a24de6f75e313b94c70feffec74bf32f9}{get\-String\-To\-Sign\-For\-Url}
\begin{DoxyCompactList}\small\item\em \-Get string to sign for creating \-Query \-String \-Request \-Authentication. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ad91255e51e257819658bc9f26bc218fa}{def {\bfseries get\-Signature}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ad91255e51e257819658bc9f26bc218fa}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a08592a21abb890d4d400ee1b2d0a2607}{def {\bfseries get\-Signature\-For\-Url}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a08592a21abb890d4d400ee1b2d0a2607}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3a53fa055ca8e7625c02ec23567ffe83}{def {\bfseries get\-Signature\-From\-Policy}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3a53fa055ca8e7625c02ec23567ffe83}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ad03dba07e3e50f23321c6907d299c721}{def {\bfseries content\-\_\-md5}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ad03dba07e3e50f23321c6907d299c721}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_ac1a3c313326af3fd401e1d560a1de04c}{def {\bfseries timestamp\-From\-A\-W\-S}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_ac1a3c313326af3fd401e1d560a1de04c}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_a29192297f938070fcf21a1b6ab5c9636}{def {\bfseries authorize}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_a29192297f938070fcf21a1b6ab5c9636}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_a1fbdfcb8b03644e1021730210cee516b}{def {\bfseries get\-Signature}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_a1fbdfcb8b03644e1021730210cee516b}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab14ac70838c1345cd212edbfb2c9e12b}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab14ac70838c1345cd212edbfb2c9e12b}{\-G\-E\-T}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab14ac70838c1345cd212edbfb2c9e12b}

\begin{DoxyCompactList}\small\item\em \-Http \-G\-E\-T method. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae1f0fec5c964430e5c4a532542ea56cf}{def {\bfseries \-P\-O\-S\-T}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae1f0fec5c964430e5c4a532542ea56cf}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2cf9afdc93278b224bbc606191a28882}{def {\bfseries \-P\-U\-T}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2cf9afdc93278b224bbc606191a28882}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af7e0b6bd5ad7edc06eaa2146a03e33ca}{def {\bfseries \-D\-E\-L\-E\-T\-E}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af7e0b6bd5ad7edc06eaa2146a03e33ca}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a9c394315202a546878a464ce4a7ef9d7}{def {\bfseries \-H\-E\-A\-D}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a9c394315202a546878a464ce4a7ef9d7}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ac029db2efebedd524c5f804c323fb36d}{def {\bfseries \-O\-P\-T\-I\-O\-N\-S}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ac029db2efebedd524c5f804c323fb36d}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a7083a0146ffcfaf9a8019a77825ed8f3}{def {\bfseries \-T\-R\-A\-C\-E}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a7083a0146ffcfaf9a8019a77825ed8f3}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a5c7b9f5fd447c364dde485cef3b1df5e}{def {\bfseries \-C\-O\-N\-N\-E\-C\-T}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a5c7b9f5fd447c364dde485cef3b1df5e}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a1a7c6f584c88103667397accf917d401}{def {\bfseries add\-Sub\-Resource}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a1a7c6f584c88103667397accf917d401}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae2ebc4612520d55267fb50d5b60b0c71}{def {\bfseries add\-Sub\-Resources}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae2ebc4612520d55267fb50d5b60b0c71}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ad9476abf2be12b8c2e1fbb47a8a3c529}{def {\bfseries set\-Header}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ad9476abf2be12b8c2e1fbb47a8a3c529}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a60185fd4713dae7274db6e88dd61313c}{def {\bfseries add\-Headers}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a60185fd4713dae7274db6e88dd61313c}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af28c7e5b53e8d60046d40b9e893a81e6}{def {\bfseries is\-Secure}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af28c7e5b53e8d60046d40b9e893a81e6}

\item 
def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ad83105a68ec324e9842c3cf2bb9a5028}{plain\-Text}
\begin{DoxyCompactList}\small\item\em \-Set the request body as plain string. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae9c9ba3070a57d5964d40cb9967f22af}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae9c9ba3070a57d5964d40cb9967f22af}{data}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae9c9ba3070a57d5964d40cb9967f22af}

\begin{DoxyCompactList}\small\item\em set the request body as application/x-\/www-\/form-\/urlencoded \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a1fa5b65befee4c6bee913d5c6d2a9b16}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a1fa5b65befee4c6bee913d5c6d2a9b16}{form}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a1fa5b65befee4c6bee913d5c6d2a9b16}

\begin{DoxyCompactList}\small\item\em set the request body as multipart-\/form \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af13b3107315164450a7492b40fb2e72d}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af13b3107315164450a7492b40fb2e72d}{file}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_af13b3107315164450a7492b40fb2e72d}

\begin{DoxyCompactList}\small\item\em set the request from a file. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a26e1905a524e2f6e6f1f8e2f9509bc63}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a26e1905a524e2f6e6f1f8e2f9509bc63}{get\-Url}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a26e1905a524e2f6e6f1f8e2f9509bc63}

\begin{DoxyCompactList}\small\item\em return a valid url address for the \-G\-E\-T request. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab42d924379a3ca0ade7bf6095475762f}{send}
\begin{DoxyCompactList}\small\item\em \-Generic send socket. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_afb5c7114df96873b9c1e04996437724f}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_afb5c7114df96873b9c1e04996437724f}{send\-\_\-through\-\_\-httplib}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_afb5c7114df96873b9c1e04996437724f}

\begin{DoxyCompactList}\small\item\em \-Send the request using the httplib module. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2b27c558bb6c7857e708f2766662416d}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2b27c558bb6c7857e708f2766662416d}{send\-\_\-through\-\_\-twisted}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2b27c558bb6c7857e708f2766662416d}

\begin{DoxyCompactList}\small\item\em \-Send request into event queue. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a82c314154a085769dedd7dbf7dbe523b}{def {\bfseries waiting\-\_\-for\-\_\-response}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a82c314154a085769dedd7dbf7dbe523b}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae1a1e28a0b939e10a73bfd8a6c97c8f4}{def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae1a1e28a0b939e10a73bfd8a6c97c8f4}{urlencode}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae1a1e28a0b939e10a73bfd8a6c97c8f4}

\begin{DoxyCompactList}\small\item\em \-Modified urlencode so that keys in dict without a value(value=\-None) appear in url as \&key\& instead of \&key=value\&. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a9803d9fcbbcc5aa1b0d72276cc219f99}{encode\-\_\-multipart\-\_\-formdata}
\begin{DoxyCompactList}\small\item\em fields is a dict of (name, value) elements for regular form fields. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ac011cb59a8d6a13a4a659aa8b3f41618}{def {\bfseries init\-Request}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ac011cb59a8d6a13a4a659aa8b3f41618}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a77e5f5a50ba33b05769a636c9638b99b}{def {\bfseries content\-\_\-type}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a77e5f5a50ba33b05769a636c9638b99b}

\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a93adc416f8c828b21af7226b43b93661}{{\bfseries \-Auth\-Key}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a93adc416f8c828b21af7226b43b93661}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ad187dfc90cb90b79ef91f53c816d2134}{{\bfseries \-Secret\-Access\-Key}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ad187dfc90cb90b79ef91f53c816d2134}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3ac125fadaad39d19e45ad17c0bde9ae}{{\bfseries security\-Token}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3ac125fadaad39d19e45ad17c0bde9ae}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ac519fda3c2d4a85770fcb013b9493c01}{{\bfseries expire}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ac519fda3c2d4a85770fcb013b9493c01}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a10649d4159e0f65812180f7c3af2c1ad}{{\bfseries host}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a10649d4159e0f65812180f7c3af2c1ad}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a96534d3c670b07f086ce955c411c973f}{{\bfseries bucket}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a96534d3c670b07f086ce955c411c973f}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a0fe99e112b083690338cf3a4f2c02e37}{{\bfseries method}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a0fe99e112b083690338cf3a4f2c02e37}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2f26328772db61bc6bdc383d4c8527bf}{{\bfseries resource}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a2f26328772db61bc6bdc383d4c8527bf}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a4b4179e79204a9bc0814c3c4c841b8f4}{{\bfseries subresources}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a4b4179e79204a9bc0814c3c4c841b8f4}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_afd10f74c164b1d2351db09df018d903f}{{\bfseries headers}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_afd10f74c164b1d2351db09df018d903f}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a84e36b7a3b318722bef10d7cac33f7cf}{{\bfseries secure}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a84e36b7a3b318722bef10d7cac33f7cf}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a8637e2009e636a61daf224f0ea6f1502}{{\bfseries body}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a8637e2009e636a61daf224f0ea6f1502}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae5ecedad376b9d122647a16c32613172}{{\bfseries response}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ae5ecedad376b9d122647a16c32613172}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a8bbeaff8c3901be7902fd2d9d7f0cc01}{{\bfseries time}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a8bbeaff8c3901be7902fd2d9d7f0cc01}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a6fb7ffd51dd269e37d1262811a220ae7}{{\bfseries result}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a6fb7ffd51dd269e37d1262811a220ae7}

\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ae6fc4dd857ce52bda4b2d1022f268cfc}{tuple {\bfseries reserved\-\_\-subresources} = (\char`\"{}acl\char`\"{}, \char`\"{}lifecycle\char`\"{}, \char`\"{}location\char`\"{}, \char`\"{}logging\char`\"{}, \char`\"{}notification\char`\"{}, \char`\"{}part\-Number\char`\"{}, \char`\"{}policy\char`\"{}, \char`\"{}request\-Payment\char`\"{}, \char`\"{}torrent\char`\"{}, \char`\"{}upload\-Id\char`\"{}, \char`\"{}uploads\char`\"{}, \char`\"{}version\-Id\char`\"{}, \char`\"{}versioning\char`\"{}, \char`\"{}versions\char`\"{}, \char`\"{}website\char`\"{})}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_ae6fc4dd857ce52bda4b2d1022f268cfc}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a4a9eed45dafcad64850b6ca1423b12fc}{tuple {\bfseries \-U\-P\-L\-O\-A\-D\-I\-N\-F\-O} = ('content-\/type','content-\/disposition','\hyperlink{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3126b0e1ca540d9bb2d654fbdc145da9}{expires}','x-\/amz-\/security-\/token')}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a4a9eed45dafcad64850b6ca1423b12fc}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_ad69b5211e458863d7255f90effa94803}{{\bfseries \-U\-S\-E\-\_\-\-A\-M\-A\-Z\-O\-N\-\_\-\-T\-I\-M\-E} = \-False}\label{classRestAPI_1_1amazon_1_1service_1_1AWSrequest_ad69b5211e458863d7255f90effa94803}

\item 
\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a0af8f3e68d51741e7e5e94620d7e3cbf}{tuple {\bfseries \-O\-K\-\_\-\-C\-O\-D\-E} = (200, 201, 204, 206)}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a0af8f3e68d51741e7e5e94620d7e3cbf}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-The basic class to provide interface for \hyperlink{namespaceS3}{\-S3}. 

\-Wrapping the additional features \hyperlink{namespaceS3}{\-S3} added into \-Http \-Requests. \-Using it the same way as \-Rest\-Request but authorize the request using your \-A\-W\-S key\-I\-D and secret key to authorize the request before you send it to amazon. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_afe52c2181effb3fe82cce1e9361db08a}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}}
\index{\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{\-\_\-\-\_\-init\-\_\-\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request.\-\_\-\-\_\-init\-\_\-\-\_\-} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{host = {\ttfamily \char`\"{}s3.amazonaws.com\char`\"{}}, }
\item[{}]{method = {\ttfamily '{\bf \-G\-E\-T}'}, }
\item[{}]{resource = {\ttfamily \char`\"{}/\char`\"{}}, }
\item[{}]{subresources = {\ttfamily \-None}, }
\item[{}]{headers = {\ttfamily \-None}, }
\item[{}]{body = {\ttfamily \char`\"{}\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_afe52c2181effb3fe82cce1e9361db08a}


\-Create a \hyperlink{namespaceS3}{\-S3} style request. 

\-Initiate the request context. \-You can also setup the request context latter. 

\-Reimplemented from \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a95f613882591073d68b082b764c92008}{\-Rest\-A\-P\-I.\-core.\-A\-P\-Iwrapper.\-Rest\-Request}.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a34f3a1407d9ad0708306d9e16fdf4f33}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!add\-Header@{add\-Header}}
\index{add\-Header@{add\-Header}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{add\-Header}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request.\-add\-Header} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{key, }
\item[{}]{value}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a34f3a1407d9ad0708306d9e16fdf4f33}


\-Overrided add\-Header for \hyperlink{namespaceS3}{\-S3}. 

\-Instead of override the old header value, it append the new value to the current values. 

\-Reimplemented from \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest}{\-Rest\-A\-P\-I.\-core.\-A\-P\-Iwrapper.\-Rest\-Request}.

\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a9803d9fcbbcc5aa1b0d72276cc219f99}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!encode\-\_\-multipart\-\_\-formdata@{encode\-\_\-multipart\-\_\-formdata}}
\index{encode\-\_\-multipart\-\_\-formdata@{encode\-\_\-multipart\-\_\-formdata}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{encode\-\_\-multipart\-\_\-formdata}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-core.\-A\-P\-Iwrapper.\-Rest\-Request.\-encode\-\_\-multipart\-\_\-formdata} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{fields}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_a9803d9fcbbcc5aa1b0d72276cc219f99}


fields is a dict of (name, value) elements for regular form fields. 

\-Return (content\-\_\-type, body) ready for httplib.\-H\-T\-T\-P instance \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3126b0e1ca540d9bb2d654fbdc145da9}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!expires@{expires}}
\index{expires@{expires}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{expires}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request.\-expires} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{expire\-\_\-time}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a3126b0e1ca540d9bb2d654fbdc145da9}


\-Set up the expiration time of a temporary \-Url to fetch the protected resources inside the buckets. 

\-The parameter expire\-\_\-time can be an time peroid after the time of requesting the temporary \-U\-R\-L or an absolute time before the temporary \-U\-R\-L expires. \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a24de6f75e313b94c70feffec74bf32f9}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!get\-String\-To\-Sign\-For\-Url@{get\-String\-To\-Sign\-For\-Url}}
\index{get\-String\-To\-Sign\-For\-Url@{get\-String\-To\-Sign\-For\-Url}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{get\-String\-To\-Sign\-For\-Url}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request.\-get\-String\-To\-Sign\-For\-Url} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_a24de6f75e313b94c70feffec74bf32f9}


\-Get string to sign for creating \-Query \-String \-Request \-Authentication. 

\-Used to provide temmporary browser accessible \-U\-R\-L to fetch the protected resources in the buckets. \hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ad83105a68ec324e9842c3cf2bb9a5028}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!plain\-Text@{plain\-Text}}
\index{plain\-Text@{plain\-Text}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{plain\-Text}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-core.\-A\-P\-Iwrapper.\-Rest\-Request.\-plain\-Text} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{text}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ad83105a68ec324e9842c3cf2bb9a5028}


\-Set the request body as plain string. 

\hypertarget{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab42d924379a3ca0ade7bf6095475762f}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!send@{send}}
\index{send@{send}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{send}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-core.\-A\-P\-Iwrapper.\-Rest\-Request.\-send} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}\label{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab42d924379a3ca0ade7bf6095475762f}


\-Generic send socket. 

returns the response or deferrer. 

\-Reimplemented in \hyperlink{classRestAPI_1_1amazon_1_1ProductAPI_1_1ProductAPIrequest_ab851b910fb26702babd339a8439e80a9}{\-Rest\-A\-P\-I.\-amazon.\-Product\-A\-P\-I.\-Product\-A\-P\-Irequest}.

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1S3Request_abbbd97b8233becb6aa67cd8bdd7a5521}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}!set\-Host@{set\-Host}}
\index{set\-Host@{set\-Host}!RestAPI::amazon::S3::S3Request@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-S3\-Request}}
\subsubsection[{set\-Host}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-S3\-Request.\-set\-Host} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{host}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1S3Request_abbbd97b8233becb6aa67cd8bdd7a5521}


\-Overrided set\-Host for \hyperlink{namespaceS3}{\-S3}. 

\-It will recognize the virtual host style host \hyperlink{namespaceS3}{\-S3} is using. 

\-Reimplemented from \hyperlink{classRestAPI_1_1core_1_1APIwrapper_1_1RestRequest_ab41f6a9ea8ca4aee8ab7d00e4bc5939d}{\-Rest\-A\-P\-I.\-core.\-A\-P\-Iwrapper.\-Rest\-Request}.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
amazon/\-S3.\-py\end{DoxyCompactItemize}
